﻿#ifndef TODOLISTITEMFRAGMENT_H
#define TODOLISTITEMFRAGMENT_H

#include <QWidget>
#include <QGridLayout>
#include "todolist.h"
namespace Ui {
class TODOListItemFragment;
}

class TODOListItemFragment : public QWidget
{
    Q_OBJECT

public:
    explicit TODOListItemFragment(TODOList event,QWidget *parent = nullptr);
    ~TODOListItemFragment();
    bool isChosen();
    TODOList getList();
private slots:
    void on_pushButton_add_clicked();

    void on_pushButton_del_clicked();
    void todoitemchange(QString name,QString exp);
    void on_checkBox_stateChanged(int arg1);

private:
    Ui::TODOListItemFragment *ui;
    TODOList list;
    QGridLayout *layout;
    bool ischosen = false;
};

#endif // TODOLISTITEMFRAGMENT_H
